home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Finder.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  3.9 KB  |  107 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Finder.a
  3. ;
  4. ;    Contains:    Finder flags and container types.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__FINDER__') = 'UNDEFINED' THEN
  19. __FINDER__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.  
  25.                                                             ; Make only the following consts avaiable to resource files that include this file 
  26. kCustomIconResource                EQU        -16455                ; Custom icon family resource ID 
  27. kContainerFolderAliasType        EQU        'fdrp'                ; type for folder aliases 
  28. kContainerTrashAliasType        EQU        'trsh'                ; type for trash folder aliases 
  29. kContainerHardDiskAliasType        EQU        'hdsk'                ; type for hard disk aliases 
  30. kContainerFloppyAliasType        EQU        'flpy'                ; type for floppy aliases 
  31. kContainerServerAliasType        EQU        'srvr'                ; type for server aliases 
  32. kApplicationAliasType            EQU        'adrp'                ; type for application aliases 
  33. kContainerAliasType                EQU        'drop'                ; type for all other containers 
  34.                                                             ; types for Special folder aliases 
  35. kSystemFolderAliasType            EQU        'fasy'
  36. kAppleMenuFolderAliasType        EQU        'faam'
  37. kStartupFolderAliasType            EQU        'fast'
  38. kPrintMonitorDocsFolderAliasType EQU    'fapn'
  39. kPreferencesFolderAliasType        EQU        'fapf'
  40. kControlPanelFolderAliasType    EQU        'fact'
  41. kExtensionFolderAliasType        EQU        'faex'                ; types for AppleShare folder aliases 
  42. kExportedFolderAliasType        EQU        'faet'
  43. kDropFolderAliasType            EQU        'fadr'
  44. kSharedFolderAliasType            EQU        'fash'
  45. kMountedFolderAliasType            EQU        'famn'
  46.  
  47.                                                             ; Finder Flags 
  48. kIsOnDesk                        EQU        $01
  49. kColor                            EQU        $0E
  50. kIsShared                        EQU        $40
  51. kHasBeenInited                    EQU        $0100
  52. kHasCustomIcon                    EQU        $0400
  53. kIsStationery                    EQU        $0800
  54. kIsStationary                    EQU        $0800
  55. kNameLocked                        EQU        $1000
  56. kHasBundle                        EQU        $2000
  57. kIsInvisible                    EQU        $4000
  58. kIsAlias                        EQU        $8000
  59. ;
  60. ;    The following declerations used to be in Files.i, 
  61. ;    but are Finder specific and were moved here.
  62. ;
  63.     IF ¬ OLDROUTINELOCATIONS THEN
  64.  
  65.                                                             ; Finder Constants 
  66. fOnDesk                            EQU        1
  67. fHasBundle                        EQU        8192
  68. fTrash                            EQU        -3
  69. fDesktop                        EQU        -2
  70. fDisk                            EQU        0
  71. FInfo                    RECORD 0
  72. fdType                     ds.l    1                ; offset: $0 (0)        ; the type of the file
  73. fdCreator                 ds.l    1                ; offset: $4 (4)        ; file's creator
  74. fdFlags                     ds.w    1                ; offset: $8 (8)        ; flags ex. hasbundle,invisible,locked, etc.
  75. fdLocation                 ds        Point            ; offset: $A (10)        ; file's location in folder
  76. fdFldr                     ds.w    1                ; offset: $E (14)        ; folder containing file
  77. sizeof                     EQU *                    ; size:   $10 (16)
  78.                         ENDR
  79. FXInfo                    RECORD 0
  80. fdIconID                 ds.w    1                ; offset: $0 (0)        ; Icon ID
  81. fdUnused                 ds.w    3                ; offset: $2 (2)        ; unused but reserved 6 bytes
  82. fdScript                 ds.b    1                ; offset: $8 (8)        ; Script flag and number
  83. fdXFlags                 ds.b    1                ; offset: $9 (9)        ; More flag bits
  84. fdComment                 ds.w    1                ; offset: $A (10)        ; Comment ID
  85. fdPutAway                 ds.l    1                ; offset: $C (12)        ; Home Dir ID
  86. sizeof                     EQU *                    ; size:   $10 (16)
  87.                         ENDR
  88. DInfo                    RECORD 0
  89. frRect                     ds        Rect            ; offset: $0 (0)        ; folder rect
  90. frFlags                     ds.w    1                ; offset: $8 (8)        ; Flags
  91. frLocation                 ds        Point            ; offset: $A (10)        ; folder location
  92. frView                     ds.w    1                ; offset: $E (14)        ; folder view
  93. sizeof                     EQU *                    ; size:   $10 (16)
  94.                         ENDR
  95. DXInfo                    RECORD 0
  96. frScroll                 ds        Point            ; offset: $0 (0)        ; scroll position
  97. frOpenChain                 ds.l    1                ; offset: $4 (4)        ; DirID chain of open folders
  98. frScript                 ds.b    1                ; offset: $8 (8)        ; Script flag and number
  99. frXFlags                 ds.b    1                ; offset: $9 (9)        ; More flag bits
  100. frComment                 ds.w    1                ; offset: $A (10)        ; comment
  101. frPutAway                 ds.l    1                ; offset: $C (12)        ; DirID
  102. sizeof                     EQU *                    ; size:   $10 (16)
  103.                         ENDR
  104.     ENDIF
  105.     ENDIF ; __FINDER__ 
  106.  
  107.